package com.zklh.leetcode.tree.model;

import java.util.List;

/**
 * 一种可以无限嵌套的数据结构
 *
 * @author 坐看落花
 * @version 1.0
 * @date 2021/5/30 14:51
 */
public class NestedInteger {


    private Integer val;

    private boolean isInteger;

    public List<NestedInteger> list;


    public boolean isInteger(){
        return isInteger;
    }


    public Integer getInteger(){
        return val;
    }


    public List<NestedInteger> getList(){
        return list;
    }

}
